package com.sdktester.base;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author Administrator
 */
@Data
@NoArgsConstructor
public class Result<T> {

    private Integer code;

    private String msg;

    private T data;

    public Result(T data) {
        this.code = 0;
        this.msg = "ok";
        this.data = data;
    }

    public Result(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
